//
//  XTBSessionManager.h
//  Pods
//
//  Created by LiuYihua on 2017/5/10.
//
//

#import <Foundation/Foundation.h>

typedef enum{
    RequestTypeGet,
    RequestTypePost
    
}RequestType;


@interface XTBSessionManager : NSObject
- (void)setValue:(NSString *)value forHttpField:(NSString *)field;

- (void)request:(RequestType)requestType urlStr: (NSString *)urlStr parameter: (NSDictionary *)param resultBlock: (void(^)(id responseObject, NSError *error))resultBlock;
- (void)updateFileWithUrlStr: (NSString *)urlStr parameter: (NSDictionary *)param fileData:(NSData *)fileData filename:(NSString *)filename mimeType:(NSString *)mimeType resultBlock: (void(^)(id responseObject, NSError *error))resultBlock;
@end
